﻿<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use frontend\components\TagsCloudWidget;
use frontend\components\RctReplyWidget;
use common\models\Post;

/* @var $this yii\web\View */
/* @var $searchModel common\models\PostSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

?>
<!DOCTYPE html>
<html lange="ZH">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta name="apple-touch-fullscreen" content="yes"> <!--  一会试验下是否有必要存在 -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="x-rim-auto-match" content="none" />
    <meta name="HandheldFriendly" content="true" />
    <title>blog</title>
    <link rel="stylesheet" href="css/widget.css">
    <link rel="stylesheet" href="css/index.css">
    <style type="text/css">
        .pagination  {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .pagination li{
            float: left;
            margin-left: 5px;
            padding: 4px 6px;
            border: 1px ;
            font-weight: bold;
            cursor: pointer;
        }
        .active{
            font-size:15px;
        }
    </style>
</head>
<body>
    <div class="wrapper">
        <header class="con_hd">
            <h2 class="hd-tit" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最新文章</h2>
        </header>
        <br><br>
        <section class="content">

            <section>
                <ul class="strategy">

                    <?= ListView::widget([
                        'id'=>'strategy',
                        'dataProvider'=>$dataProvider,
                        'itemView'=>'itm',//子视图,显示一篇文章的标题等内容.
                        'layout'=>'{items} {pager}',
                        'pager'=>[
                            'maxButtonCount'=>4,
                            'options' => ['class' => 'pagination'],

                            'nextPageLabel'=>Yii::t('app','下一页'),
                            'prevPageLabel'=>Yii::t('app','上一页'),
                        ],
                    ])?>
                </ul>
            </section>
        </section>
    </div>
    <footer class="footbottom">
  <p>All rights reserved | Design by<a href="http://www.lanrenmb.com/"> Bolg</a></p>
    </footer>
</body>
</html>